﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Bastanteo.Dominio.CBastanteo>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th> CodigoPoder </th>
            <th> CodigoGrupo </th>
            <th> ImporteLimite </th>
            <th> FechaVencimiento </th>
            <th> TipoIntervencion </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { id = item.CodigoBastanteo }) %>
                
                <%: Html.ActionLink("Eliminar", "Delete", new { id = item.CodigoBastanteo })%>
            </td>
            <td>
                <%: item.CodigoBastanteo %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.ImporteLimite) %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.FechaVencimiento) %>
            </td>
            <td>
                <%: item.TipoIntervencion %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Create") %>
    </p>

</asp:Content>

